package responsibility.practice_02;

/**
 * @author yi qiang
 * @date 2021/6/21 22:27
 */
public class Client {
    public static void main(String[] args) {
        PurchaseRequest purchaseRequest=new PurchaseRequest(1,31000,0);
        DepartmentApprover departmentApprover=new DepartmentApprover("张主任");
        CollegeApprover college = new CollegeApprover("李院长");
        ViceSchoolMasterApprover viceSchoolMasterApprover = new ViceSchoolMasterApprover("张副校长");
        SchoolMasterApprover schoolMasterApprover = new SchoolMasterApprover("王校长");
        departmentApprover.setApprover(college);
        college.setApprover(viceSchoolMasterApprover);
        viceSchoolMasterApprover.setApprover(schoolMasterApprover);
        departmentApprover.processRequest(purchaseRequest);


    }
}
